﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sahit.iSoilHotel.Domain.Seedwork;
using Sahit.iSoilHotel.Domain.MainBoundedContext.Tavern.Aggregates.RoomAgg;
using Sahit.iSoilHotel.Domain.MainBoundedContext.Tavern.Aggregates.CustomerAgg;
using Sahit.iSoilHotel.Domain.MainBoundedContext.Tavern.Aggregates.PriceAgg;

namespace Sahit.iSoilHotel.Domain.MainBoundedContext.Tavern.Aggregates.RecordAgg
{
    public class Record:Entity
    {
        public DateTime StartDate { get; set; }
        public DateTime EndDate { get; set; }
        public virtual Room Room { get; set; }
        public virtual Guid RoomID { get; set; }
        public virtual Price Price { get; set; }
        public virtual Guid PriceID { get; set; }
        public virtual PriceCode PriceCode { get; set; }
        public virtual Guid PriceCodeID { get; set; }
        public virtual RecordStatus Status
        {
            get
            {
                return (RecordStatus)this.StatusID;
            }
            set
            {
                this.StatusID = (int)value;
            }
        }
        public virtual int StatusID { get; set; }
        public virtual ICollection<Customer> Customers { get; set; }
    }
}
